<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
import { useLoadingBar } from "naive-ui";
const loadingBar = useLoadingBar();
const router = useRouter();
router.beforeEach(() => {
  loadingBar.start();
  return true;
});
router.afterEach(() => {
  loadingBar.finish();
});
</script>
